<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<%
	xMode = Request("xMode")
	showSubMenu = "70"
	adminPass = "password"
	if Request.Cookies("S_uid") = "hooshim" then
		adminPass = "text" 
	end if 	
	
	'## 부서 정보
	Set partRs=Server.CreateObject("ADODB.RecordSet")
	SQL = "SELECT itemCd, itemNm FROM tblComCode WHERE flag='Y' AND groupCd='0005' ORDER BY itemSeq"	
	partRs.open SQL, dbCon
	
	If partRs.eof Or partRs.bof Then 
	Else 
		Do Until partRs.eof Or partRs.bof
			options = options & "<option value='" & partRs("itemCd") & "'>" & partRs("itemNm") & "</option>"
		partRs.movenext
		Loop 
	End If
	
	'## 직급 정보
	Set dutyRs=Server.CreateObject("ADODB.RecordSet")
	SQL = "SELECT itemCd, itemNm FROM tblComCode WHERE flag='Y' AND groupCd='0007' ORDER BY itemSeq"	
	dutyRs.open SQL, dbCon
	
	If dutyRs.eof Or dutyRs.bof Then 
	Else 
		Do Until dutyRs.eof Or dutyRs.bof
			dutyOptions = dutyOptions & "<option value='" & dutyRs("itemCd") & "'>" & dutyRs("itemNm") & "</option>"
		dutyRs.movenext
		Loop 
	End If
	
	'## 회원등급 정보
	Set gradeRs=Server.CreateObject("ADODB.RecordSet")
	SQL = "SELECT itemCd, itemNm FROM tblComCode WHERE flag='Y' AND groupCd='0008' ORDER BY itemSeq"	
	gradeRs.open SQL, dbCon
	
	If gradeRs.eof Or gradeRs.bof Then 
	Else 
		Do Until gradeRs.eof Or gradeRs.bof
			gradeOptions = gradeOptions & "<option value='" & gradeRs("itemCd") & "'>" & gradeRs("itemNm") & "</option>"
		gradeRs.movenext
		Loop 
	End If
	
	
%>
<!-- #include virtual=/inc/header.inc.asp -->  

<BODY topmargin="0" leftmargin="0">
<!-- #include virtual=/inc/menu.inc.asp -->  

 <!-- 검색 영역 시작 -->
<div style="text-align:left;margin-top:20px;">
<!-- #include virtual=/inc/subMenu.inc.asp --> 
<table border="0" cellpadding="0" cellspacing="0" width="1237" style="margin-left:5px;">
	<tr height="40">
		<td style="padding: 0px 0 0px 10px;background-image:url(/inc/layout/panel-title-light-bg.gif);font-weight:bold;text-align:left" width="100%" class="lTD_trbl">
			이름 <input type="text" name="userNm" id="findUserNm" class="inputBox" style="width:80px;ime-Mode:active"> &nbsp;
			<input type="button" onClick="grid01List()" value="검 색" class="inputBtn">&nbsp;
			<input type="button" onClick="fnSearchReset()" value="Reset" class="inputBtn">
		</td>
	</tr>
</table>
</div>
<!-- 검색 영역 끝 -->


<br>

<!-- 그리드 시작 -->
<div style="text-align:left">
<table border="0" cellpadding="0" cellspacing="0" width="1235" style="margin-left:5px;text-align:left">
	<tr>
		<td width="100%" class="lTD_trbl" valign="top" style="padding: 5px 5px 5px 5px;">
			<table border="0" cellpadding="0" cellspacing="0" width="590">
				<tr height="24">
					<td style="padding: 0 0 0 0;text-align:left" width="300"><div><input type="text" class="subTitle" style="width:80px;" value="권한 관리" ReadOnly>&nbsp;<a href="javascript:grid01List()">[새로고침]</a> &nbsp;</div> </td>
					<td style="padding: 0 20 0 0;" align="right" width="290"><B>Total :</B> <span id="grid01Cnt" style="font-weight:bold">0</span></td>
				</tr>
			</table>
			<table border="0" cellpadding="0" cellspacing="0" width="590"><tr><td style="background-color:#3366CC;height:2px"></td></tr></table>
			<div class="tblContainer" id="gridLayer01" style="width:590px; height:600px; overflow-y:scroll">
			<form name="frmGrid01">
			<table border="0" id="Grid01" width="573" cellpadding="0" cellspacing="0">
				<thead>
				<tr bgcolor="#EEECE7" height="25" align="center">
					<td width="40" class="lTD_0rbl gridTitle">No.</td>
					<td width="80" class="lTD_0rb0 gridTitle">ID</td>
					<td width="100" class="lTD_0rb0 gridTitle">이름</td>
					<td width="50" class="lTD_0rb0 gridTitle">직급</td>
					<td width="110" class="lTD_0rb0 gridTitle">연락처</td>
					<td width="60" class="lTD_0rb0 gridTitle">등급</td>
					<td width="70" class="lTD_0rb0 gridTitle">이용여부</td>
					<td width="63" class="lTD_0rb0 gridTitle">그룹웨어</td>
				</tr>
				<tr id="tr01Result" bgcolor="#FFFFFF" height="25" align="center">
					<td colspan="8" style="color:#948D88; BORDER-TOP: #abccf8 0px solid;" class="lTD_0rbl"><span id="loadSpan1" style="color:#CE7302">검색된 자료가 없습니다.</span></td>
				</tr>
				</thead>
				<tbody></tbody>
			</table>
			</form>
			</div>
			<table border="0" width="590" cellpadding="0" cellspacing="0">
				<tr>
					<td align="left" colspan="6" bgcolor="FFFFFF" style="BORDER-BOTTOM: #abccf8 1px solid;BORDER-LEFT: #abccf8 1px solid;BORDER-TOP: #abccf8 1px solid;BORDER-RIGHT: #abccf8 1px solid;padding-top:0px">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<tr align="center" height="30">
								<td style="background-image:url(/inc/layout/panel-title-light-bg.gif)"><span id="pageDiv01"></span></td>
							</tr>									
						</table>
					</td>
				</tr>
			</table>
		</td>
		<td valign="top" style="text-align:center; padding-left:5px">					
			<table border="0" cellpadding="0" cellspacing="0" width="500">
				<tr>
				  <td width="100%" class="lTD_trbl" style="padding: 5px 5px 5px 5px; text-align:center">
					<table border="0" cellpadding="0" cellspacing="0" width="490">
						<input type="hidden" name="userIdCheck" id="userIdCheck">
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								사용자 ID &nbsp; : &nbsp; <input type="text" name="userID" id="userId" size="15" class="specialBox"> &nbsp;&nbsp;
								<input type="button" onClick="fnDupIdCheck()" value="중복체크" class="inputBtn"> &nbsp; 
								<select id="gwYN">
									<option value="Y">그룹웨어 사용자</option>
									<option value="N">그룹웨어 접근불가</option>
								</select>
							
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								이 &nbsp; &nbsp; &nbsp; &nbsp;름 &nbsp; : &nbsp;<input type="text" name="userNm" id="userNm" size="15" class="specialBox" style="margin-left:4px"> &nbsp; &nbsp; &nbsp;
								비밀번호 &nbsp; : &nbsp;<input type="<%=adminPass%>" name="passwd" id="passwd" size="15" class="specialBox">
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								직 &nbsp; &nbsp; &nbsp; &nbsp;급 &nbsp; : &nbsp;
								<select name="uDuty" id="uDuty" style="margin-right:58px">
									<option value="">-직급-</option>
									<%=dutyOptions%>
								</select> 
								전자결재 비밀번호 &nbsp; : &nbsp;<input type="<%=adminPass%>" name="apprPass" id="apprPass" size="15" class="specialBox">
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								부 &nbsp; &nbsp; &nbsp; &nbsp;서 &nbsp; : &nbsp;
								<select name="uPart" id="uPart" style="margin-right:58px">
									<option value="">-부서-</option>
									<%=options%>
								</select> 
								연 락 처 &nbsp; &nbsp;: &nbsp;<input type="text" name="uPhone" id="uPhone" size="20" class="inputBox">
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								&nbsp;&nbsp;E-mail&nbsp;&nbsp; &nbsp; : &nbsp;<input type="text" name="uEmail" id="uEmail" size="40" class="inputBox" style="margin-left:5px"> &nbsp; &nbsp;
								<select name="uLevel" id="uLevel" style="width:75px">
									<option value="">-Level-</option>
									<%=gradeOptions%>
									<!--
									<option value="10">일반</option>
									<option value="50">관리자</option>
									<option value="05">외부고객</option>
									-->
								</select>
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								거 &nbsp;래 &nbsp;처 &nbsp; : &nbsp; <input type="text" name="company" id="company" size="25" class="inputBox" onblur="fnFindCompany(this.value,'','compCd')"> &nbsp;&nbsp; 
								<select name="compCd" id="compCd" style="width:150px"><option value="">--거래처--</option></select>
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 3px 0 3px 20px; text-align:left; font-weight:bold">
								권 &nbsp; &nbsp; &nbsp; &nbsp;한 &nbsp; : &nbsp;
								<input type="checkbox" id="p10" style="border:0">메인 
								<input type="checkbox" id="p11" style="border:0">게시판 
								<input type="checkbox" id="p12" style="border:0">통계 <br> 
								<input type="checkbox" id="p20" style="border:0; margin-left:83px">작업지시
								<input type="checkbox" id="p21" style="border:0">가공(2팀)<br> 
								<input type="checkbox" id="p30" style="border:0; margin-left:83px">공정관리<br> 
								<input type="checkbox" id="p40" style="border:0; margin-left:83px">제품관리<br>  
								<input type="checkbox" id="p50" style="border:0; margin-left:83px">자재관리 
								<input type="checkbox" id="p51" style="border:0">자재입출현황
								<input type="checkbox" id="p52" style="border:0">장비휴지
								<input type="checkbox" id="p53" style="border:0">거래명세서<br> 
								<input type="checkbox" id="p60" style="border:0; margin-left:83px">오더관리
								<input type="checkbox" id="p61" style="border:0">거래처관리
								<input type="checkbox" id="p62" style="border:0">견적서<br>
								<input type="checkbox" id="p70" style="border:0; margin-left:83px">기초코드
								<input type="checkbox" id="p71" style="border:0">권한관리
								<input type="checkbox" id="p72" style="border:0">휴일근무관리<br>
								<input type="checkbox" id="p80" style="border:0; margin-left:83px">회계(입금) 
								<input type="checkbox" id="p81" style="border:0">회계(출금) 
								<input type="checkbox" id="p82" style="border:0">계정관리
								<input type="checkbox" id="p83" style="border:0">통계<br>
								<span style="margin-left:23px">[그룹웨어]</span> <input type="checkbox" id="p90" style="border:0; ">보고서
								<input type="checkbox" id="p91" style="border:0">전자결재 
								<input type="checkbox" id="p92" style="border:0">게시판
							</td>
						</tr>
						<tr>
							<td width="490" class="lTD_00b0" style="padding: 10px 0 10px 20px; text-align:left; font-weight:bold">
								<textarea name="uRemark" id="uRemark" class="inputBox" style="width:450px; height:120px"></textarea>

							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								<select name="delYN" id="delYN">
									<option value="N">사용중</option>
									<option value="Y">중지</option>
								</select> &nbsp; &nbsp;<input type="text" id="accessInfo" style="font-weight:normal;width:250px; border:0px">
								<span>
								<input type="button" value="저장" class="inputBtn" onClick="fnSave()"> 
								<input type="button" value="신규" class="inputBtn" onClick="fnReset()">
								</span>
							</td>
						</tr>
					</table>
				  </td>
				</tr>
			</table>
		</td>		
		<td width="265">
			<table border="0" cellpadding="0" cellspacing="0" width="147">
				<tr>
					<td>&nbsp;</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</div>
<!-- 그리그 끝 -->

<script language="javascript">
	setMainMenu();
	fnCommonInit();
</script>
</BODY>
</HTML>